package com.zez.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zez
 * @since 2025-01-07
 */
@Data
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer sid;

    private String sname;

    private String sex;

    private Integer age;

    private String addr;

    private Integer cid;

    private String cname;

    @TableLogic//逻辑删除注释
    private Integer deleted;

    @TableField(fill= FieldFill.INSERT)
    private LocalDateTime createtime;
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;
}
